package com.bao.work;

import java.util.Scanner;

/**
 * @author baoye
 * @date 2024-07-23/19:14
 */
public class ExceptionTest01 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        int num=input.nextInt();
        if(num<0||num>100){
            try {
                throw new ScoreException("分数必须在0到100之间");
            } catch (ScoreException e) {
                e.printStackTrace();
            }
        }
    }
}
class ScoreException extends RuntimeException{
    public ScoreException() {
    }

    public ScoreException(String message) {
        super(message);
    }
}

